<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>组织生活管理管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a>组织生活查询</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="organizeLife" action="${ctx}/life/organizeLife/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
            <li><label>活动名称：</label>
				<form:input path="lifename" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label style="margin-left: -20px;">分类：</label>
				<form:select path="typeids" class="input-medium" >
							<form:option value="" label="全部"/>
							<form:options items="${organizeLifeTypes}" itemLabel="typename" itemValue="id" htmlEscape="false"/>
						</form:select>
			</li>
			<li><label style="margin-left: -20px;">状态：</label>
				<form:select style="width:80px" path="jhstate" class="input-medium">
					<form:option value="" label="全部"/>
					<form:options items="${fns:getDictList('life_state_flag')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>					
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr><th style="width:5%">序号</th>
				<th style="width:30%">活动名称</th>
				<th style="width:15%">分类</th>
				<th style="width:7%">计划状态</th>		
				<th style="width:13%">计划时间</th>		
				<th style="width:30%">活动地点</th>		
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="organizeLife" varStatus="rowIndex">
			<tr>
			    <td style='text-align: center'>${rowIndex.index+1}</td>
				<td><a href="${ctx}/life/organizeLife/form?id=${organizeLife.id}">
					
<div style="width:320px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;" 
					title="${organizeLife.lifename}">${organizeLife.lifename}</div>
				</a></td>
				<td>
				<div style="width:150px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;" 
					title="${organizeLife.typeids}">${organizeLife.typeids}</div>
				</td>
				<td style='text-align: center'>
					${fns:getDictLabel(organizeLife.jhstate, 'life_state_flag', '')}
				</td>
				<td style='text-align: center'>
					<fmt:formatDate value="${organizeLife.jhtime}" pattern="yyyy-MM-dd HH:mm"/>
				</td>
				<td>
				<div style="width:320px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;" 
					title="${organizeLife.adress}">${organizeLife.adress}</div>
				</td>				
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>